package com.heima.article.controller.v1;

import com.heima.article.service.ApChannelSizeService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class ApChannelSizeController {

    private final ApChannelSizeService channelSizeService;

    @PostMapping("/channelSize/{id}")
    public Integer channelSize(@PathVariable Integer id){
        Integer size = channelSizeService.channelSize(id);
        return size;
    }
}
